home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / emulator / uae-0.000 / uae-0 / uae-0.6.0 / Makefile.dos < prev    next >
Makefile  |  1996-06-14  |  4KB  |  194 lines

  1. #
  2. # Makefile.dos for UAE
  3. #
  4.  
  5. CC        = gcc
  6. CPP       = gcc -E
  7. CFLAGS    = -O3 -fomit-frame-pointer -fstrength-reduce -malign-jumps=0 -malign-loops=0 -malign-functions=0 -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes -D__DOS__ -DX86_ASSEMBLY -D__inline__=inline -DSTATFS_NO_ARGS=2 -DSTATBUF_BAVAIL=f_bfree
  8. LIBRARIES = -lgrx20
  9. GFXOBJS   = dos-grx.o nogui.o
  10. ASMOBJS   = X86.o
  11.  
  12. .SUFFIXES: .o .c .h .m
  13.  
  14. INCLUDES=-Iinclude
  15.  
  16. OBJS = main.o newcpu.o memory.o debug.o custom.o cia.o disk.o $(GFXOBJS) \
  17.        autoconf.o os.o ersatz.o filesys.o hardfile.o keybuf.o expansion.o \
  18.        readcpu.o cpudefs.o gfxutil.o gfxlib.o blitfunc.o blittable.o $(ASMOBJS) \
  19.        cpu0.o cpu1.o cpu2.o cpu3.o cpu4.o cpu5.o cpu6.o cpu7.o \
  20.        cpu8.o cpu9.o cpuA.o cpuB.o cpuC.o cpuD.o cpuE.o cpuF.o cpustbl.o
  21.  
  22. all: sysconfig.h uae.exe readdisk.exe
  23.  
  24. sysconfig.h: sysconfig.h.dos
  25.     cp sysconfig.h.dos sysconfig.h
  26.  
  27. readdisk.exe: readdisk.o
  28.     $(CC) readdisk.o -o readdisk
  29.     strip readdisk
  30.     coff2exe readdisk
  31.  
  32. uae.exe: $(OBJS)
  33.     $(CC) $(OBJS) -o uae $(LIBRARIES)
  34.     strip uae
  35.     coff2exe uae
  36.  
  37. clean:
  38.     -del *.o
  39.     -del uae
  40.     -del uae.exe
  41.     -del readdisk
  42.     -del readdisk.exe
  43.     -del gencpu.exe
  44.     -del genblitter.exe
  45.     -del build68k.exe
  46.     -del cpudefs.c
  47.     -del cpu?.c
  48.     -del blit.h
  49.     -del cputbl.h
  50.     -del cpustbl.c
  51.     -del blitfunc.c
  52.     -del blitfunc.h
  53.     -del blittable.c
  54.  
  55. halfclean:
  56.     -del *.o
  57.  
  58. blit.h: genblitter.exe
  59.     genblitter i >blit.h
  60. blitfunc.c: genblitter.exe blitfunc.h
  61.     genblitter f >blitfunc.c
  62. blitfunc.h: genblitter.exe
  63.     genblitter h >blitfunc.h
  64. blittable.c: genblitter.exe blitfunc.h
  65.     genblitter t >blittable.c
  66.  
  67. genblitter.exe: genblitter.o
  68.     $(CC) -o $@ $?
  69. build68k.exe: build68k.o
  70.     $(CC) -o $@ $?
  71. gencpu.exe: gencpu.o readcpu.o cpudefs.o
  72.     $(CC) -o $@ gencpu.o readcpu.o cpudefs.o
  73.  
  74. custom.o: blit.h
  75.  
  76. cpudefs.c: build68k.exe table68k
  77.     build68k >cpudefs.c
  78. cpustbl.c: gencpu.exe
  79.     gencpu s >cpustbl.c
  80. cputbl.c: gencpu.exe
  81.     gencpu t >cputbl.c
  82. cputbl.h: gencpu.exe
  83.     gencpu h >cputbl.h
  84.  
  85. cpu0.c: gencpu.exe
  86.     gencpu f 0 >cpu0.c
  87. cpu1.c: gencpu.exe
  88.     gencpu f 1 >cpu1.c
  89. cpu2.c: gencpu.exe
  90.     gencpu f 2 >cpu2.c
  91. cpu3.c: gencpu.exe
  92.     gencpu f 3 >cpu3.c
  93. cpu4.c: gencpu.exe
  94.     gencpu f 4 >cpu4.c
  95. cpu5.c: gencpu.exe
  96.     gencpu f 5 >cpu5.c
  97. cpu6.c: gencpu.exe
  98.     gencpu f 6 >cpu6.c
  99. cpu7.c: gencpu.exe
  100.     gencpu f 7 >cpu7.c
  101. cpu8.c: gencpu.exe
  102.     gencpu f 8 >cpu8.c
  103. cpu9.c: gencpu.exe
  104.     gencpu f 9 >cpu9.c
  105. cpuA.c: gencpu.exe
  106.     gencpu f 10 >cpuA.c
  107. cpuB.c: gencpu.exe
  108.     gencpu f 11 >cpuB.c
  109. cpuC.c: gencpu.exe
  110.     gencpu f 12 >cpuC.c
  111. cpuD.c: gencpu.exe
  112.     gencpu f 13 >cpuD.c
  113. cpuE.c: gencpu.exe
  114.     gencpu f 14 >cpuE.c
  115. cpuF.c: gencpu.exe
  116.     gencpu f 15 >cpuF.c
  117.  
  118. cpu0.o: cpu0.c cputbl.h
  119.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  120. cpu1.o: cpu1.c cputbl.h
  121.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  122. cpu2.o: cpu2.c cputbl.h
  123.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  124. cpu3.o: cpu3.c cputbl.h
  125.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  126. cpu4.o: cpu4.c cputbl.h
  127.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  128. cpu5.o: cpu5.c cputbl.h
  129.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  130. cpu6.o: cpu6.c cputbl.h
  131.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  132. cpu7.o: cpu7.c cputbl.h
  133.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  134. cpu8.o: cpu8.c cputbl.h
  135.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  136. cpu9.o: cpu9.c cputbl.h
  137.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  138. cpuA.o: cpuA.c cputbl.h
  139.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  140. cpuB.o: cpuB.c cputbl.h
  141.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  142. cpuC.o: cpuC.c cputbl.h
  143.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  144. cpuD.o: cpuD.c cputbl.h
  145.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  146. cpuE.o: cpuE.c cputbl.h
  147.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  148. cpuF.o: cpuF.c cputbl.h
  149.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  150.  
  151. X86.o: X86.S
  152.     $(CC) $(INCLUDES) -c $(CFLAGS) X86.S
  153.  
  154. .m.o:
  155.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.m
  156. .c.o:
  157.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.c
  158. .c.s:
  159.     $(CC) $(INCLUDES) -S $(CFLAGS) $*.c
  160. .S.o:
  161.     $(CC) $(INCLUDES) -c $(CFLAGS) $*.S
  162.  
  163. # Saves recompiling...
  164. touch:
  165.     touch *.o
  166.     touch build68k.exe
  167.     touch cpudefs.c
  168.     touch gencpu.exe
  169.     touch genblitter.exe
  170.     touch cpu*.c
  171.     touch cpu*.h
  172.  
  173. # Some more dependencies...
  174. cpustbl.o: cputbl.h
  175. cputbl.o: cputbl.h
  176.  
  177. build68k.o: include/readcpu.h
  178. readcpu.o: include/readcpu.h
  179.  
  180. main.o: config.h
  181. cia.o: config.h
  182. custom.o: config.h
  183. newcpu.o: config.h
  184. autoconf.o: config.h
  185. expansion.o: config.h
  186. xwin.o: config.h
  187. svga.o: config.h
  188. bebox.o: config.h
  189. os.o: config.h
  190. memory.o: config.h
  191. debug.o: config.h
  192. ersatz.o: config.h
  193. disk.o: config.h
  194.